
<link
	href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>

<script>
	function reCredits(id) {
		var uid = "";
		if (!id) {
			uid = $("input[name=uid]").val()
		} else {
			uid = id;
		}
		$("#reCredits").dialog({
			width : 360,
			buttons : [ {
				text : "提交",
				click : function() {
					$.post("admin.php?mod=member&code=reCredits", {
						"uid" : uid,
						"type" : $("#reAu").val(),
						"num" : $("#num").val(),
						"desc" : $("#desc").val()
					}, function(response) {
						if (response.status == 0) {
							alert(response.info);
						} else {
							$("#reCredits").dialog("close");
							alert(response.info);
							location.reload();
						}

					});
				}
			} ]
		});
	}
</script>
<!-- GX 积分增减弹窗 -->
<div id="reCredits" title="用户积分增减" style="display: none">
	<select id="reAu">
		<option value="1">增加</option>
		<option value="2">减少</option>
	</select> 积分值 <input id="num" value=""> <br> 写明原因
	<textarea id="desc"></textarea>
</div>